"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const utils = require("utils");
const index = require("../config/index.js");
function getGroupPushContent(sizuList, sep = "\r\n") {
  const currentStatus = (item, key) => {
    let v = item[key];
    if (utils.util.nilValue(v)) {
      return `未知`;
    }
    return v ? "💯" : "❗️️";
  };
  let atMobiles = [];
  let notifyUsersNames = index.notifyUsers.map((e) => e.name);
  let msgArr = sizuList.map((item) => {
    let user = `${item.name || ""}`;
    let isNotifyIndex = notifyUsersNames.findIndex((e) => {
      return e.trim() === user.trim();
    });
    if (isNotifyIndex >= 0) {
      if (utils.util.emptyValue(item == null ? void 0 : item.input)) {
        atMobiles.push(index.notifyUsers[isNotifyIndex].phone);
      }
    }
    return `${user} ${currentStatus(item, "input")}`;
  });
  if (msgArr.length > 0) {
    msgArr.push(`截止到 ${utils.util.baseDateDes(/* @__PURE__ */ new Date())}`);
  }
  return [msgArr.join(sep), atMobiles];
}
exports.getGroupPushContent = getGroupPushContent;
